package com.almond.admin.controller;

import com.almond.admin.queue.ProductRequestMerger;
import com.almond.mq.handle.AmqMessageHandle;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 延迟队列测试
 * Created by LPB on 2020/04/20.
 */
@RestController
public class ProductQueueController {

    @Resource
    private ProductRequestMerger productRequestMerger;

    @PostMapping("/addProduct")
    public void addProduct(String productId) {
        productRequestMerger.addProductInfo(productId);
    }


}
